home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12171 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  517 b 

  1. Path: sparry.a2i!sparry
  2. From: Stephen Parry <sparry@rahul.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Suppress Exponential Notation
  5. Date: 29 Mar 1996 15:48:29 GMT
  6. Organization: a2i network
  7. Message-ID: <4jh0od$8g3@bug.rahul.net>
  8. NNTP-Posting-Host: bolero.rahul.net
  9. NNTP-Posting-User: sparry
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. How can I display/print small decimal values as regular decimals?
  13.  
  14. x = 0.25
  15. y = 10000
  16. z = x/y
  17.  
  18. Need to printf (or use something else) z as ".000025" or "0.000025" not 
  19. "2.5e-05"
  20.  
  21. Thanks!
  22.  
  23. Stephen
  24.